package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StudentInformationMapper;
import com.ruoyi.system.domain.StudentInformation;
import com.ruoyi.system.service.IStudentInformationService;

/**
 * 学生情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-20
 */
@Service
public class StudentInformationServiceImpl implements IStudentInformationService 
{
    @Autowired
    private StudentInformationMapper studentInformationMapper;

    /**
     * 查询学生情况
     * 
     * @param familySituation 学生情况主键
     * @return 学生情况
     */
    @Override
    public StudentInformation selectStudentInformationByFamilySituation(String familySituation)
    {
        return studentInformationMapper.selectStudentInformationByFamilySituation(familySituation);
    }

    /**
     * 查询学生情况列表
     * 
     * @param studentInformation 学生情况
     * @return 学生情况
     */
    @Override
    public List<StudentInformation> selectStudentInformationList(StudentInformation studentInformation)
    {
        return studentInformationMapper.selectStudentInformationList(studentInformation);
    }

    @Override
    public StudentInformation selectStudentInformationByUid(Long uid) {
        return studentInformationMapper.selectStudentInformationByUid(uid);
    }

    /**
     * 新增学生情况
     * 
     * @param studentInformation 学生情况
     * @return 结果
     */
    @Override
    public int insertStudentInformation(StudentInformation studentInformation)
    {
        return studentInformationMapper.insertStudentInformation(studentInformation);
    }

    /**
     * 修改学生情况
     * 
     * @param studentInformation 学生情况
     * @return 结果
     */
    @Override
    public int updateStudentInformation(StudentInformation studentInformation)
    {
        return studentInformationMapper.updateStudentInformation(studentInformation);
    }

    /**
     * 批量删除学生情况
     * 
     * @param familySituations 需要删除的学生情况主键
     * @return 结果
     */
    @Override
    public int deleteStudentInformationByFamilySituations(String[] familySituations)
    {
        return studentInformationMapper.deleteStudentInformationByFamilySituations(familySituations);
    }

    /**
     * 删除学生情况信息
     * 
     * @param familySituation 学生情况主键
     * @return 结果
     */
    @Override
    public int deleteStudentInformationByFamilySituation(String familySituation)
    {
        return studentInformationMapper.deleteStudentInformationByFamilySituation(familySituation);
    }
}
